package com.evil.Mail;

import java.io.File;

/********************************************
 * 工程名：Web
 * 包名：com.evil.Mail
 * 时间：16-9-21 下午4:55
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：发送邮件所用的Bean
 ********************************************/
public class MailBean
{
    private String fromAddr;/*邮箱地址*/
    private String userPassword;/*邮箱密码*/
    private String toAddr;/*接收邮箱地址*/
    private String title;/*邮件标题*/
    private String content;/*邮件内容*/
    private String img;/*图片*/
    private File file;/*附件*/

    public MailBean()
    {
    }

    public MailBean(String fromAddr, String userPassword, String toAddr, String title, String content, String img, File file)
    {
        this.fromAddr = fromAddr;
        this.userPassword = userPassword;
        this.toAddr = toAddr;
        this.title = title;
        this.content = content;
        this.img = img;
        this.file = file;
    }

    public String getFromAddr()
    {
        return fromAddr;
    }

    public void setFromAddr(String fromAddr)
    {
        this.fromAddr = fromAddr;
    }

    public String getUserPassword()
    {
        return userPassword;
    }

    public void setUserPassword(String userPassword)
    {
        this.userPassword = userPassword;
    }

    public String getToAddr()
    {
        return toAddr;
    }

    public void setToAddr(String toAddr)
    {
        this.toAddr = toAddr;
    }

    public String getTitle()
    {
        return title;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getContent()
    {
        return content;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public String getImg()
    {
        return img;
    }

    public void setImg(String img)
    {
        this.img = img;
    }

    public File getFile()
    {
        return file;
    }

    public void setFile(File file)
    {
        this.file = file;
    }

    @Override
    public String toString()
    {
        return "MailBean{" +
                "fromAddr='" + fromAddr + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", toAddr='" + toAddr + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", img='" + img + '\'' +
                ", file=" + file +
                '}';
    }
}
